﻿using System;
using System.Collections.ObjectModel;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using EpiNEXT.Services;
using EpiNEXT.Services.Data;
using EpiNEXT.Services.Fields;

namespace EpiNEXT.Data
{
    public class DataDriverFactory
    {
        public IDbDriver CreateDataDriver(string dataDriverString, string dataLocationString)
        {
            Type dataDriverType = Type.GetType(dataDriverString);
            IDbDriver driver = (IDbDriver)Activator.CreateInstance(dataDriverType, new string [] { dataLocationString });
            return driver;
        }
    }
}
